<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
    *{margin: 0;padding: 0;}
    .drag{
        position: absolute;
        width: 150px;
        height: 150px;
        background: gold;
        border-radius: 30px;
    }
    .drag h4{
        color: rgb(241, 249, 248);
        text-align: center;
        padding: 10px 0;
    }
    </style>
</head>
<body>
<div class="drag" id="drag">
    <h4>这是一个拖拽效果</h4>
    xxx
</div> 
<script src="js/script1.js"></script>  
</body>
</html>